local craftyEscapeSkill = fk.CreateSkill{
  name = "iberia__crafty_escape_skill",
}

Fk:loadTranslationTable{
  ["iberia__crafty_escape_skill"] = "金蝉脱壳",
}

local I = require "packages/iberia/utility"

craftyEscapeSkill:addEffect("cardskill", {
  can_use = Util.FalseFunc,
  on_effect = function(self, room, effect)
    if effect.responseToEvent then
      effect.responseToEvent.isCancellOut = true
    end
    if I.isCounsellor(effect.from) then
      effect.from:drawCards(2, "iberia__crafty_escape")
    end
  end,
})

return craftyEscapeSkill
